<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,

		// Example word content CSS (should be your site CSS) this one removes paragraph margins
		content_css : "css/word.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>
<style type="text/css">
<!--
.dk {	color: #0000FF;
	font-weight: bold;
	font-size: 24px;
}
.style3 {color: #000000; font-weight: bold; font-size: 16px; }
#Layer1 {
	position:absolute;
	width:200px;
	height:118px;
	z-index:1;
	left: 35px;
	top: 61px;
}
#Layer2 {
	position:absolute;
	width:111px;
	height:115px;
	z-index:2;
	left: 1179px;
	top: 65px;
}
-->
</style>
<script language="javascript">
function hamkttk()
{	
	
	$.post('laydl.php',{name:form1.taikhoan.value} ,
										function(layve)
										{
											$("#kt_taikhoan").html(layve);
										}
	)
	$("#kt_taikhoan").ajaxSend(function(evt, request, settings){ 
        $(this).html('<img src="hinh/index.gif" width="18" height="19"/>'); 
      });

}
function hammk()
{
	if(form1.mk1.value==form1.mk2.value)
	{
		$("#mk").html('M&#7841;t kh&#7843;u h&#7907;p l&#7879;'); 
	}
	else
	{
		$("#mk").html('M&#7841;t kh&#7843;u ch&#432;a h&#7907;p l&#7879;');
	}

}
function xuly()
{
$.post('xulydangky.php',{
tk:form1.taikhoan.value
,mk:form1.mk1.value
,ht:form1.hoten.value
,gt:form1.gioitinh.value
,dt:form1.dienthoai.value
,ns:form1.ngaysinh.value
,email:form1.email.value
,hinh:form1.hinh.value
,mt:form1.mota.value
} ,
										function(layve)
										{
											$("#form").html(layve);
										}
)
}
</script>

<div align="center">
  <h2 align="center">
  <font color="#0000FF">Th&ocirc;ng tin &#273;&#259;ng k&yacute; </font>
  </h2>
</div>
<form action="" method="get" enctype="multipart/form-data" name="form1">
  <div id="Layer1">123</div>
  <table width="812" height="601" border="0" align="center" cellpadding="2" cellspacing="2" style="border:outset;border-width:thin">
    <tr>
      <td colspan="2"><label><span class="style3">L&#7900;I NH&#7854;N T&#7914; DI&#7874;N &#272;&Agrave;N </span></label></td>
    </tr>
    <tr>
      <td colspan="2"><div style="border:inset;border-width:thin">
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      </div></td>
    </tr>
    <tr>
      <td width="135"><strong>T&agrave;i kho&#7843;n </strong></td>
      <td width="655"><input type="text" name="taikhoan" onkeypress="hamkttk()" onkeyup="hamkttk()" style="border:inset; color:#0000FF;border-width:thin""/>
      <label id="kt_taikhoan"></label></td>
    </tr>
    <tr>
      <td><strong>M&#7853;t kh&#7849;u </strong></td>
      <td><input name="mk1" type="password" id="mk1" onkeyup="hammk()" style="border:inset;border-width:thin""/></td>
    </tr>
    <tr>
      <td><strong>Nh&#7853;p l&#7841;i m&#7853;t kh&#7849;u </strong></td>
      <td><input name="mk2" type="password" id="mk2" onkeyup="hammk()" style="border:inset;border-width:thin""/>
          <label id="mk"></label></td>
    </tr>
    <tr>
      <td><strong>H&#7885; t&ecirc;n </strong></td>
      <td><input name="hoten" type="text" id="hoten" style="border:inset;border-width:thin;border-width:thin"/></td>
    </tr>
	 <tr>
      <td><strong>Gi&#7899;i t&iacute;nh </strong></td>
      <td><label>
        <select name="gioitinh" id="gioitinh">
          <option value="Nam" selected="selected">Nam</option>
          <option value="N&#7919;">N&#7919;</option>
          <option value="Gi&#7899;i t&iacute;nh kh&aacute;c">Gi&#7899;i t&iacute;nh kh&aacute;c</option>
        </select>
      </label></td>
	 </tr>
    <tr>
      <td><strong>&#272;i&#7879;n tho&#7841;i </strong></td>
      <td><input name="dienthoai" type="text" id="dienthoai" style="border:inset;border-width:thin"/></td>
    </tr>
    <tr>
      <td><strong>Ng&agrave;y sinh </strong></td>
      <td><input name="ngaysinh" type="text" id="ngaysinh" style="border:inset;border-width:thin"/></td>
    </tr>
    <tr>
      <td><strong>Email</strong></td>
      <td><input name="email" type="text" id="email" style="border:inset;border-width:thin" size="35"/></td>
    </tr>
    <tr>
      <td><strong>Nh&#7853;p l&#7841;i Email</strong></td>
      <td><input name="textfield4223" type="text" size="35" style="border:inset;border-width:thin"/></td>
    </tr>
    <tr>
      <td><strong>H&igrave;nh c&#7911;a b&#7841;n </strong></td>
      <td><label>
        <input name="hinh" type="file" id="hinh" style="border:inset;border-width:thin" size="50"/>
      </label></td>
    </tr>
	<tr>
      <td><strong>M&ocirc; t&#7843; v&#7873; b&#7841;n </strong></td>
      <td><label>
      <textarea name="mota" cols="70" rows="7" id="mota" style="border:inset;border-width:thin"></textarea>
      </label></td>
    </tr>
    <tr>
      <td colspan="2"><strong>
        <label>
        <input type="checkbox" name="checkbox" value="checkbox" />
          T&ocirc;i &#273;&atilde; &#273;&#7885;c qua v&agrave; &#273;&#7891;ng &yacute; v&#7899;i m&#7885;i &#273;i&#7873;u ki&#7879;n t&#7915; di&#7875;n &#273;&agrave;ng. </label>
      </strong></td>
    </tr>
    <tr>
      <td colspan="2"><label> </label>
          <div align="center"><strong>
            <input type="button" name="Button" value="&#272;&#7891;ng &yacute;" onclick="xuly()" />
            <input type="reset" name="Submit2" value="H&#7911;y b&#7887;" />
          </strong></div>
        <strong> </strong></td>
    </tr>
  </table>
</form>
